package com.rj.util;

import org.bouncycastle.util.encoders.Hex;

/**
 * 信息打印工具
 *
 * @author YFX_RANLUBO
 * @date 2025/11/03 11:55
 **/
public class PrintUtils {

    /**
     * 打印信息
     *
     * @param msg
     * @param params
     */
    public static void print(String msg, Object... params) {
        if (params != null) {
            for (int i = 0; i < params.length; i++) {
                if (params[i] instanceof byte[]) {
                    params[i] = Hex.toHexString((byte[]) params[i]);
                }
            }
        }
        System.out.println(msg.formatted(params));
    }


}
